package com.yxy.model;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_physician",schema = "")
public class TablePhysician {

  //id
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //用户账号
  @Column(name = "user_account")
  private String userAccount;

  //门店编码
  @Column(name = "store_code")
  private String storeCode;

  //门店名称
  @Column(name = "store_name")
  private String storeName;

  //医师编号
  @Column(name = "physician_code")
  private String physicianCode;

  //医师姓名
  @Column(name = "physician_name")
  private String physicianName;

  //医师类型
  @Column(name = "physician_type")
  private String physicianType;

  //医师等级
  @Column(name = "physician_grade")
  private String physicianGrade;

  //医师身份证
  @Column(name = "physician_card")
  private String physicianCard;

  //医师电话
  @Column(name = "physician_tel")
  private String physicianTel;

  //医师生日
  @Column(name = "physician_birthday")
  private Date physicianBirthday;

  //医师性别   0为男，1，为女
  @Column(name = "physician_grander")
  private Long physicianGrander;

  //可预约人数
  @Column(name = "physician_num")
  private Long physicianNum;

  //已经预约人数
  @Column(name = "physician_user_num")
  private Long physicianUserNum;

  //标记数据状态 0 不显示 1显示
  @Column(name = "status")
  private Long status;

  //数据备注
  @Column(name = "misc")
  private String misc;

  //医师头像
  @Column(name = "physician_avatar")
  private String physicianAvatar;

  //创建者id
  @Column(name = "create_user_id")
  private Long createUserId;

  //创建人姓名
  @Column(name = "create_user_name")
  private String createUserName;

  //创建时间
  @Column(name = "create_date")
  private Date createDate;

  //修改人id
  @Column(name = "update_user_id")
  private Long updateUserId;

  //修改人姓名
  @Column(name = "update_user_name")
  private String updateUserName;

  //更新时间
  @Column(name = "update_date")
  private Date updateDate;

  //varchar预留字段1
  @Column(name = "param1")
  private String param1;

  //预留字段2
  @Column(name = "param2")
  private Long param2;

  //预留字段3
  @Column(name = "param3")
  private BigDecimal param3;


}
